package com.foreknow.elm.controller;

import com.foreknow.elm.po.DeliveryAddress;
import com.foreknow.elm.service.DeliveryAddressService;
import com.foreknow.elm.service.impl.DeliveryAddressServiceImpl;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public class DeliveryAddressController {

    public Object listDeliveryAddressByUserId(HttpServletRequest request)throws Exception{
        Integer userId = Integer.valueOf(request.getParameter("userId"));
        DeliveryAddressService service = new DeliveryAddressServiceImpl();
        DeliveryAddress da= service.getDaByID(userId);
        return da;
    }
}
